import server from '../utils/server'
/**
 * 用户登录的接口
 * @params mobile 用户输入的手机号码
 * pwd 用户输入的密码
 
 * **/ 

const login = async (params) => {
    let data = await server({
        url: '/small4/user/m/login?deviceId=007&deviceName=monkey',
        method: 'post',
        params
    })
    return data
}

/**
 * 获取用户详情的接口
 * @token 用户登录成功后后台返回的token
 * 
 * **/
const getUserInfo = async (token) => {
    let data = await server.post('/small4/user/detail?token=' + token)
    return data
}
export {
    login,
    getUserInfo
}